import os

import yaml

yaml_dict = {
    "ally_num": 4
}
yaml_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'transfer.yaml')
with open(yaml_dir, 'w', encoding='utf-8', ) as f:
    yaml.dump(yaml_dict, f, encoding='utf-8', allow_unicode=True)